﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Service.BusinessLayer.Entities;
using Service.DataAccess.DataAccessLogic;


namespace Service.BusinessLayer.Logic
{
    public class XL_SoNhap
    {
        private SoNhap_DA snda = new SoNhap_DA();
        public void them(SoNhap sn)
        {
            snda.them(sn);
        }
        public void sua(SoNhap sn)
        {
            snda.sua(sn);
        }
        public void xoa(string masn)
        {
            snda.xoa(masn);
        }
        public DataSet LayDS()
        {
            DataSet ds = new DataSet();
            ds = snda.LayDS();
            return ds;
        }        
        public DataSet LayDS_TheoNgayNhap(DateTime ngaynhap)
        {
            DataSet ds = new DataSet();
            ds = snda.LayDS_TheoNgayNhap(ngaynhap);
            return ds;
        }
        public DataSet LayDSCTSoNhap_Theo_MaSN(string MaSN)
        {
            DataSet ds = new DataSet();
            ds = snda.LayDSCTSoNhap_Theo_MaSN(MaSN);
            return ds;
        }
        public DataSet LayDS_SoNhapChuaGiao_TheoMaKH(int MaKH)
        {
            DataSet ds = new DataSet();
            ds = snda.LayDS_SoNhapChuaGiao_TheoMaKH(MaKH);
            return ds;
        }
    }
}
